package com.zlx.xBiaoShop.dao;

import com.zlx.xBiaoShop.entity.RecvAddr;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RecvAddrDao extends JpaRepository<RecvAddr,Integer> {

    List<RecvAddr> findByUserId(Integer userId);
    RecvAddr findByUserIdAndId(Integer userId, Integer defaultId);
}
